   <%@ page language="java" contentType="text/html; charset=utf-8" %>  
   <html>  
   <head>  
   <title>uploadFile</title>  
      
        <link rel="stylesheet" type="text/css"
	href="../ext/resources/css/ext-all.css" />
	<link rel="stylesheet" type="text/css" href="../css/main.css"/>
	<link rel="shortcut icon" href="../images/favicon.ico" />
	<script type="text/javascript" src="../ext/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="../ext/ext-all.js"></script>
	<script type="text/javascript" src="../ext/source/locale/ext-lang-zh_CN.js"></script>
	<script type="text/javascript" src="../js/Ccams-lib.js"></script>
	<script type="text/javascript" src="UploadDialog.js"></script>
     
    <script>             
    	Ext.onReady(function(){  
              var formPanel = new Ext.FormPanel({
				labelAlign : 'right',
				labelWidth : 100,
				frame : true,
				url : '../',
				bodyStyle : 'padding:5px 5px 0',
				width : '100%',
				items : [{
					layout : 'column',
					items : [{
						columnWidth : 1,
						layout : 'form',
						items : [{
							xtype : 'textfield',
							fieldLabel : '图片地址',
							emptyText : '点击上传图片',
							tabIndex : 16,
							readOnly:true,
							name : 'filename',
							id:'fileurl',
							listeners:{
								'focus':function(){
									App.UploadDialog();	
								}
							},
							anchor : '95%'
						}]
					}]
				}]
			});
			var winid = 'AddGoodsinfo';
	var win = new Ext.Window({
		title : '添加产品信息',
		width : '90%',
		height : 500,
		id : winid,
		layout : 'fit',
		plain : true,
		bodyStyle : 'padding:5px;',
		buttonAlign : 'center',
		resizable : false,
		items : formPanel,
		modal : true,
		listeners: {
		    'show': function() {
		        this.findByType('textfield')[0].focus(true, true); //第一个textfield获得焦点
		    }
		}
	});

	win.show();
           });  
</script>  
   </head>  
   <body>  
     
   <div id="tree-ct">  
     
   </body>  
   </html>  